using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public enum BuffStat
{
    Damage,
    Armor,
    MaxHp,
    FireDamage,
    LightDamage,
    IceDamage
}
[CreateAssetMenu(fileName = "Buff", menuName = "Data/EquipEffect/Buff")]
public class BuffEffect : EquipEffect
{
     private PlayerStat stat;
    [SerializeField] private BuffStat buffStat;
    [SerializeField] private float bufftime;
    [SerializeField] private int buffAmount;
    public override void GetEffect(Transform position)
    {
        stat = PlayerManager.Instance.player.GetComponent<PlayerStat>();
        stat.IncreaseStatBy(buffAmount, bufftime, stat.StatModify(buffStat));
    }
 
}
